

from ..models import Model


class ProductCategory(Model):
    _name = 'product.category'


class ProductTemplate(Model):
    _name = 'product.template'

    _metadata = {

        "context": {
            # "allowed_company_ids": [1],
            #  create 时 , 设置 默认值
            #     "default_company_id": 1,
        },

        "field_onchange": {
            # "name": "",
            # "type": "1",
            # "uom_id": "1",
            # "uom_po_id": "1",
            # "categ_id": "1",
            # "company_id": "1",

            # "cost_currency_id": "",
            # "currency_id": "",
            # "default_code": "",
            # "list_price": "",
            # "name": "",
            # "purchase_ok": "",
            # "sale_ok": "",
            # "standard_price": "",
            # "supplier_taxes_id": "",
            # "taxes_id": "",



            "product_variant_count": "",
            "is_product_variant": "",
            "attribute_line_ids": "",
            "attribute_line_ids.attribute_id": "1",
            "attribute_line_ids.value_ids": "",
            "id": "",
            "image_1920": "",
            "__last_update": "",
            "name": "",
            "sale_ok": "",
            "purchase_ok": "",
            "active": "",
            "type": "1",
            "categ_id": "1",
            "default_code": "",
            "barcode": "",
            "list_price": "",
            "pricelist_item_count": "",
            "taxes_id": "",
            "standard_price": "",
            "uom_name": "",
            "company_id": "1",
            "uom_id": "1",
            "uom_po_id": "1",
            "currency_id": "",
            "cost_currency_id": "",
            "product_variant_id": "",
            "description": "",
            "description_sale": "",
            "supplier_taxes_id": "",
            "weight": "",
            "weight_uom_name": "",
            "volume": "",
            "volume_uom_name": "",
            "property_account_income_id": "",
            "property_account_expense_id": "",
            "asset_category_id": "",

            # "packaging_ids": "",
            # "packaging_ids.name": "",
            # "packaging_ids.qty": "",
            # "packaging_ids.product_uom_id": "",
            # "packaging_ids.company_id": "",
            # "message_follower_ids": "",
            # "message_follower_ids.res_model": "",
            # "message_follower_ids.res_id": "",
            # "message_follower_ids.partner_id": "",
            # "message_follower_ids.channel_id": "",
            # "activity_ids": "",
            # "activity_ids.res_name": "",
            # "activity_ids.activity_type_id": "1",
            # "activity_ids.summary": "",
            # "activity_ids.date_deadline": "",
            # "message_ids": "",
            # "message_ids.date": "",
            # "message_ids.subject": "",
            # "message_ids.author_id": "",
            # "message_ids.model": "",
            # "message_ids.res_id": ""

        },




    }
